package com.nativetalk.service.four.book;

import com.nativetalk.base.RetInfo;
import com.nativetalk.bean.book.TdNtBookCourse;
import com.nativetalk.bean.member.TdNtMember;

import java.math.BigDecimal;

/**
 * Created by lizhun on 2016/11/1.
 * Modified by wangzheng on 2017/03/03
 */
public interface FourBookService {
    /**
     * @Purpose  跳转到支付宝或微信支付
     * @version  4.0
     * @author   wangzheng
     * @return   RetInfo
     */
    public RetInfo transferBuy(TdNtMember tdNtMember, String set_id, String userBlanace, String ip, String channel);

    /**
     * @Purpose  购买课程
     * @version  4.0
     * @author   lizhun
     * @Modifier wangzheng
     * @param    tdNtBookCourse
     * @return   RetInfo
     */
    public RetInfo addBook(TdNtBookCourse tdNtBookCourse, TdNtMember tdNtMember, String ip);

    /**
     * @Purpose  购买试听课程
     * @version  4.1
     * @author   wangzheng
     * @param    tdNtBookCourse
     * @return   RetInfo
     */
    public RetInfo addListenBook(TdNtBookCourse tdNtBookCourse, TdNtMember tdNtMember,String userBlanace, String ip, String channel, String orderNo);

    /**
     * @Purpose  试听跳转到支付宝或微信支付
     * @version  4.1
     * @author   wangzheng
     * @return   RetInfo
     */
    public RetInfo transferListenBuy(TdNtMember tdNtMember, String userBlanace, BigDecimal listen_price, String ip, String channel);
}
